[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
movetext() Copies Text From One on Screen Rectangle to Another
#include <conio.h>
int movetext(left,top,right,bottom,newleft,newtop);
int left;
int top;
int right;
int bottom;
int newleft;
int newtop;
movetext() copies a block of text from one rectangular area on the
screen to another. The text is copied from the area bordered by
('left','top'), ('right','bottom') to an area of the same dimensions
whose upper left coordinate is ('newleft', 'newtop').
Returns: 1, if successful; 0 on failure.
Portability: IBM PC and BIOS compatibles only.
-------------------------------- Example ---------------------------------
The folowing statements print a block of text then copy it to a
different location.
#include <conio.h>
main()
{
int x, y;
gotoxy(1,1);
for (y = 0; y < 9; y++) {
for (x = 0; x < 19; x++)
printf("%c",65+y);
printf("\n");
}
getch();
movetext(1,1,20,10,30,15);
}
See Also:
gettext()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson